module.exports = function(config) {
    var customLaunchers = {
        sl_chrome: {
            base: 'SauceLabs',
            browserName: 'chrome',
            platform: 'Windows 7'
        },
        sl_firefox: {
            base: 'SauceLabs',
            browserName: 'firefox'
        },
        sl_mac_safari: {
            base: 'SauceLabs',
            browserName: 'safari',
            platform: 'OS X 10.10'
        }
    };

    config.set({
        basePath: '',
        frameworks: ['mocha', 'chai', 'chai-jquery', 'jquery-1.8.3'],
        files: [{{{files}}}],
        plugins: [
            'karma-sauce-launcher',
            'karma-mocha',
            'karma-chai-plugins',
            'karma-jquery',
            'karma-chrome-launcher'
        ],
        sauceLabs: {
            testName: 'licia'
        },
        reporters: ['dots', 'saucelabs'],
        port: 9876,
        colors: true,
        logLevel: config.LOG_INFO,
        customLaunchers: customLaunchers,
        browsers: Object.keys(customLaunchers),
        singleRun: true
    });
};